package com.zshy.base.kit.chain.impl;

import com.zshy.base.kit.chain.LanguageChainFilter;
import com.zshy.base.kit.enums.language.detail.AmharicLanguageTypeEnum;
import org.springframework.core.annotation.Order;
import org.springframework.stereotype.Component;

/**
 * 泰语语言责任链
 *
 * @author zhouhengzhe
 * @version 1.0
 * @date 2023/9/7 16:11
 */
@Order(7)
@Component
public class AmharicLanguageChainFilter implements LanguageChainFilter {
    /**
     * 获取发送短信或者邮箱的语言标识
     *
     * @param languageCode 语言类型
     * @return 需要发送短信的语言标识
     */
    @Override
    public String getLanguage(String languageCode) {
        return AmharicLanguageTypeEnum.getRealCodeByCode(languageCode);
    }
}
